// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
#include "pch.h"
#include "WebServiceRegistry.h"

using namespace Weathr;
using namespace Web;

using namespace Platform;
using namespace std;

vector<String^> WebServiceRegistry::m_registeredServices;

void WebServiceRegistry::RegisterWebService(IWebService* webService)
{
    auto serviceName = ref new String(webService->GetServiceName().c_str());
    if (find(begin(m_registeredServices), end(m_registeredServices), serviceName) == end(m_registeredServices))
    {
        m_registeredServices.emplace_back(serviceName);
        WebServiceRegistered(serviceName);
    }
}
